Don't fail sum test on near-cancelling inputs
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)
committerGraham Inggs <ginggs@debian.org>
Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)
Failed in 1.5.3+dfsg-11 after it happened to select an input that
cancelled to ~1e-5 (on i386, so x87 excess precision might be involved)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name sum_loosen_test_tolerance.patch

pandas/tests/frame/test_reductions.py

index 8b450cecfca00f0d82195d64a48a2f4e617c7660..2b025a4a8bb82afff67d7ad48ccef1b1b4b3d679 100644 (file)
@@ -337,7 +337,7 @@ class TestDataFrameAnalytics:
             np.sum,
             mixed_float_frame.astype("float32"),
             check_dtype=False,
-            rtol=1e-3,
+            rtol=1e-3, atol=1e-3,
         )
 
         assert_stat_op_calc(